// The class's declaration and definition

#include <iostream>
#include <cstring>
using namespace std;


class Human {
	public:
		Human( int age=0, const char* name="wuming" );
		void getinfo( );	// Declaration
	private:
		int age;
		char name[16];
};

Human::Human( int age, const char* name ) {	// Constructor
	this->age = age;
	strcpy( this->name, name );
}

void Human::getinfo( ) {	// Definition
	cout << "name : " << this->name << "\n" << "age :" << this->age << endl;
}


// designer
// ------------------------------------------------------------------
// user


int main( void ) { 
	Human h( 22, "zhangfei" );
	h.getinfo( );

	return 0;
}

